//
//  MLISOneView.m
//  BaseProject
//
//  Created by mac on 2021/1/11.
//  Copyright © 2021 王洋. All rights reserved.
//

#import "MLISOneView.h"

@interface MLISOneView ()
@property(nonatomic,strong)UIImageView *topIV;
@end

@implementation MLISOneView
- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        self.height = self.topIV.bottom;
    }
    return self;
}
#pragma mark - lazy懒加载
- (UIImageView *)topIV
{
    if (!_topIV) {
        UIImageView *iv = [[UIImageView alloc]init];
        [self addSubview:iv];
        iv.image = [UIImage getPNGimageInBundleWithName:@"MLI_Segement_1"];
        iv.frame = CGRectMake(14*ADAPTER_WIDTH, 0, self.width - 28*ADAPTER_WIDTH, 393*ADAPTER_WIDTH);
        _topIV = iv;
    }
    return _topIV;
}
@end
